package com.baidu.shopping.pojo;

import com.baidu.app.pojo.App;

public class CartItem {

	private String id;
	private App app;
	private int buyNum ;
	private double totalPrice;
	
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public App getApp() {
		return app;
	}
	public void setApp(App app) {
		this.app = app;
	}
	public int getBuyNum() {
		return buyNum;
	}
	public void setBuyNum(int buyNum) {
		this.buyNum = buyNum;
	}	
	public double getTotalPrice() {
		totalPrice = app.getPrice() * buyNum;
		return totalPrice;
	}
	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}
	
	
	public CartItem(String id, App app, int buyNum) {
		super();
		this.id = id;
		this.app = app;
		this.buyNum = buyNum;
	}
	public CartItem() {
		super();

	}
	
	
	
	
	
}
